package thread.disruptor.parallel;

import com.lmax.disruptor.EventHandler;
import thread.disruptor.generate1.Trade;

/**
 * Created by Try on 2017/6/11.
 */
public class Handler3 implements EventHandler<Trade> {

    @Override
    public void onEvent(Trade trade, long sequence, boolean endOfBatch) throws Exception {
        System.out.println(Thread.currentThread().getName()+"  ==>handler3: name:" + trade.getName() + "\t price" + trade.getPrice() + "\t instace:" + trade.toString());
    }
}
